/**
 * @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see https://ckeditor.com/legal/ckeditor-oss-license
 */

/*CKEDITOR.editorConfig = function( config ) {
	// Define changes to default configuration here.
	// For complete reference see:
	// http://docs.ckeditor.com/#!/api/CKEDITOR.config

	// The toolbar groups arrangement, optimized for two toolbar rows.
	config.toolbar_Full = [
//	    ['Source','-','Save','NewPage','Preview','-','Templates'],
//	    ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
//	    ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
//	    ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField','Maximize', 'ShowBlocks'],
//	    ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
//	    '/',
//	    ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
//	    ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
//	    ['Link','Unlink','Anchor'],
//	    ['uploadfile', 'Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
//	    ['Styles','Format','Font','FontSize'],
//	    ['TextColor','BGColor'],
	    
	    [ 'Source','-','Save','NewPage','DocProps','Preview','Print','-','Templates' ],
		[ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ],
		[ 'Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt' ],
		[ 'Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField' ],
		'/',
		[ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ],
		[ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ],
		[ 'Link','Unlink','Anchor' ],
		[ 'uploadfile','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Iframe' ],
		'/',
		[ 'Styles','Format','Font','FontSize' ],
		[ 'TextColor','BGColor' ],
		[ 'Maximize', 'ShowBlocks','-' ]
	    ];
	config.toolbar_Full  = [
		{ name: 'document', items : [ 'Source','-','Save','NewPage','DocProps','Preview','Print','-','Templates' ] },
		{ name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },
		{ name: 'editing', items : [ 'Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt' ] },
		{ name: 'forms', items : [ 'Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 
	        'HiddenField' ] },
		'/',
		{ name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] },
		{ name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv',
		'-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ] },
		{ name: 'links', items : [ 'Link','Unlink','Anchor' ] },
		{ name: 'insert', items : [ 'Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Iframe' ] },
		'/',
		{ name: 'styles', items : [ 'Styles','Format','Font','FontSize' ] },
		{ name: 'colors', items : [ 'TextColor','BGColor' ] },
		{ name: 'tools', items : [ 'Maximize', 'ShowBlocks','-','About' ] }
		{ name: 'others', groups: [ 'others' ] },
	];

	// Remove some buttons provided by the standard plugins, which are
	// not needed in the Standard(s) toolbar.
	// config.removeButtons = 'Underline,Subscript,Superscript';
//	config.filebrowserImageBrowseUrl= '/ckfinder/ckfinder.html?type=Images';
// 	config.filebrowserUploadUrl = getRootPath()+'/attachment/doCkeditorUpload.do?type=file';  
//	config.filebrowserImageUploadUrl = '/doCkeditorUpload?type=image';
	config.image_previewText=' ';
	config.filebrowserUploadMethod = 'form';
	config.filebrowserImageUploadUrl="/uploadImageTmp";
//	config.filebrowserFlashUploadUrl = getRootPath()+'/attachment/doCkeditorUpload.do?type=flash';
	config.extraPlugins = 'uploadfile'; 
	// 文件上传路径  (全路径  ipcofig为我的项目后台路径) 例: http://aaa.com/service/FileUpload
	config.WordFileUpload =  "/uploadImageTmp";

	// Set the most common block elements.
	config.format_tags = 'p;h1;h2;h3;pre';

	// Simplify the dialog windows.
	config.removeDialogTabs = 'image:advanced;link:advanced';
};
*/
CKEDITOR.editorConfig = function( config ) {
	// Define changes to default configuration here. For example:
	// config.language = 'fr';
	// config.uiColor = '#AADC6E';
	config.removeButtons = 'Image,Flash,Save,Language,About';
	config.extraPlugins = 'uploadfile'; 
	// 文件上传路径  (全路径  ipcofig为我的项目后台路径) 例: http://aaa.com/service/FileUpload
	config.WordFileUpload =  "/uploadImageTmp";
};
